<script setup lang="ts">
import { ref } from 'vue';
import BasicEditor from './components/BasicEditor.vue';
import ExtendedEditor from './components/ExtendedEditor.vue';

const show = ref<boolean>(true);

const toggle = () => {
  show.value = !show.value;
};
</script>

<template>
  <div>
    wangEditor for vue3
    <button @click="toggle">显示/隐藏</button>
  </div>
  <hr />

  <!-- <BasicEditor v-if="show"></BasicEditor> -->
  <ExtendedEditor v-if="show"></ExtendedEditor>
</template>

<style></style>
